<template>
  <div class="container">
    <input type="text" v-model="name" />
    <div>{{ name }}</div>
    <button v-copy="name">点击复制</button>
  </div>
</template>

<script setup>
import { ref, reactive } from "vue";
const name = ref("");
</script>

<style scoped></style>
